// type interface class
// class PartitionType {
//     constructor(public id: number, public name: string,
//         public children: PartitionType[] = []) {
//     }
// }
// // data数据 => 菜单项实例
// function createPartitionTypes(data: any[]): PartitionType[] {
//     return data.map(item => new PartitionType(item.tid, item.typename))
// }
interface PartitionType {
    id: number;
    name: string;
    children?:PartitionType[]
}

export type{
    PartitionType,
    // createPartitionTypes
}